﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OracleClient;
using DBUtility;

namespace BLL.DutyAssignment
{
    public class B_DutyBanci
    {
        private readonly OracleDAL.DutyAssignment.D_DutyBanci dal = new OracleDAL.DutyAssignment.D_DutyBanci();
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(string ID)
        {
            return dal.Exists(ID);
        }

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public void Add(Model.DutyAssignment.M_DutyBanci model)
        {
            dal.Add(model);
        }

        /// <summary>
        /// 更新一条数据
        /// </summary>
        public void Update(Model.DutyAssignment.M_DutyBanci model)
        {
            dal.Update(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public void Delete(string ID)
        {

            dal.Delete(ID);
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public Model.DutyAssignment.M_DutyBanci GetModel(string ID)
        {

            return dal.GetModel(ID);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }

        public string GetId(int seq)
        {
            switch (seq)
            {
                case 0: return "一";
                case 1: return "二";
                case 2: return "三";
                default: return "一";
            }
        }
        #endregion  成员方法
    }
}
